package com.mic.core.model.critera;

import org.apache.commons.lang3.StringUtils;


public class CriteraContext {

	private String keywords;


	public String[] getKeywordsArray() {
		if(keywords == null)
			keywords = "";
		return StringUtils.split(keywords.trim(),null,0);
	}
	
	// ~~ getters and setters
	public String getKeywords() {
		return keywords;
	}


	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	@Override
	public String toString() {
		return "Critera [keywords=" + keywords + "]";
	}

}
